import React from "react"
import ReactPlayer from 'react-player'

const VideoPlayer: React.FC<{ url: string }> = (props) => {
    const { url } = props

    return <ReactPlayer
        url={url}
        controls // 显示播放控件
        playing={false} // 自动播放视频
        width="300px"
        height="100%"
    />
}

export default VideoPlayer